package org.jeecg.modules.question.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 题目选项
 *
 * @author thankgod7
 * @version V1.0
 * @date 2022-01-18
 */
@ApiModel(value = "ao_question_item对象", description = "题目选项")
@Data
@TableName("ao_question_item")
public class AoQuestionItem implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 选项
     */
    @Excel(name = "选项(大写A-Z)", width = 15)
    @ApiModelProperty(value = "选项")
    private String prefix;
    /**
     * 选项内容
     */
    @Excel(name = "选项内容", width = 15)
    @ApiModelProperty(value = "选项内容")
    private String infoText;
    /**
     * 备注(保留字段)
     */
    @Excel(name = "备注(保留字段)", width = 15)
    @ApiModelProperty(value = "备注(保留字段)")
    private String remark;
    /**
     * 题目ID外键
     */
    @ApiModelProperty(value = "题目ID外键")
    private String questionId;
    /**
     * 分数(保留字段)
     */
    @Excel(name = "分数(保留字段)", width = 15)
    @ApiModelProperty(value = "分数(保留字段)")
    private Integer score;
}
